﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using KC.DTO.Core;

namespace KC.DTO.App
{
    [Serializable]
    [DataContract(IsReference = true)]
    public class ApplicationModuleDTO : EntityDTO
    {
        [DataMember]
        public Guid ModuleId { get; set; }
        [DataMember]
        [MaxLength(128)]
        [Display(Name = "模块名称")]
        public string ModuleName { get; set; }
        [DataMember]
        [MaxLength(512)]
        [Display(Name = "模块描述")]
        public string Description { get; set; }
        [DataMember]
        [MaxLength(128)]
        [Display(Name = "模块涉及程序集")]
        public string AssemblyName { get; set; }
        [DataMember]
        public Guid ApplicationId { get; set; }
        public ApplicationDTO AspNetApplication { get; set; }
    }
}
